package com.nuoniu.sibanyun.service.erp.barcode;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nuoniu.sibanyun.entity.erp.barcode.ErpBarcodeRuleContent;
import com.nuoniu.sibanyun.entity.vo.ErpBarcodeRuleContentVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 白强
 * @since 2021-11-08
 */
public interface IErpBarcodeRuleContentService extends IService<ErpBarcodeRuleContent> {

    /**
     * 保存 规则内容
     * @param ruleContentList
     */
    void saveRuleContent(List<ErpBarcodeRuleContent> ruleContentList,Long ruleId);

    /**
     * 根据 规则ID 获取
     * @param ruleId
     * @return
     */
    List<ErpBarcodeRuleContent> listByRuleId(Long ruleId);

    /**
     * 根据规则ID  查询 规则内容
     * @param ruleId
     * @return
     */
    List<ErpBarcodeRuleContentVo> listErpBarcodeRuleContentVo(Long ruleId,String voucherTypeCode);



}
